<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/8/3
 * Time: 10:53
 */

namespace plugin\admin\app\model\withdraw;


use plugin\admin\app\model\Base;

class TransferOrderNotifyModel extends Base
{
    protected $table = 'video_spread_transfer_order_notify';

    protected $primaryKey = 'id';

    public $timestamps = false;

    protected static $instance;

    public static function getInstance()
    {
        //        if(is_object(self::$instance)){
//            return self::$instance;
//        }

        return new self();
    }

    public function saveData($param)
    {
        $data['response_result'] = json_encode($param,256);
        $data['real_name'] = $param['real_name']??'';
        $data['order_id'] = $param['order_id']??'';
        $data['status'] = $param['status']??'';

        $id = $this->insertGetId($data);

        return $id;

    }
}